<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue入门案例2</title>
    <script src="https://unpkg.com/vue/dist/vue.min.js"></script>
</head>
<body>
<div id="aaa">
    <input type="text" v-model="name" placeholder="你的名字">
    <h1>你好,{{name}}</h1>
</div>
<script>
    var app = new Vue({
        el: "#aaa",
        data: {
            name: ''
        }
    })
</script>
</body>
</html>